package com.choosefine.it.team.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.team.dao.TeamTypeInfoMapper;
import com.choosefine.it.team.model.TeamTypeInfo;
import com.choosefine.it.team.service.TeamTypeInfoService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;


@Service("teamTypeInfoService")
public class TeamTypeInfoServiceImpl implements TeamTypeInfoService {

	@Autowired 
	TeamTypeInfoMapper teamTypeInfoMapper;
	
	@Override
	public Page<TeamTypeInfo> getAllTeamInfoType(PageDTO pageDto) {
		PageHelper.startPage(pageDto.getPageNum(), pageDto.getPageSize());
		Page<TeamTypeInfo> page = teamTypeInfoMapper.getAllTeamTypeInfo();
		return page;
	}

	@Override
	public TeamTypeInfo selectTeamTypeInfoById(Integer id) {
		TeamTypeInfo teamTypeInfo=teamTypeInfoMapper.selectTeamTypeInfoById(id);
		return teamTypeInfo;
	}


}
